package com.example.aircraftticketingsystemserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aircraftticketingsystemserver.entity.Flight;
import com.example.aircraftticketingsystemserver.entity.Ticket;
import com.example.aircraftticketingsystemserver.entity.Timezone;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TimezoneMapper extends BaseMapper<Timezone> {
    List<Flight> selectFlightsWithLocalTime();

    void addCity(Timezone timezone);

    void deleteCity(Integer cityId);

    void batchDeleteCity(List<Integer> cityIds);

    void updateCity(Timezone city);

    List<Timezone> getCityByParams(@Param("city")String city,
                                   @Param("timezoneId")String timezoneId);
}
